#! /usr/bin/env python
# coding=utf-8
#############################################################################
#                                                                           #
#   File: index.py                                                          #
#                                                                           #
#   Copyright (C) 2008 Chen Baiping <chenbaiping@21cn.com>                  #
#                                                                           #
#   This program is free software; you can redistribute it and/or modify    #
#   it under the terms of the GNU General Public License as published by    #
#   the Free Software Foundation; either version 2 of the License, or       #
#   (at your option) any later version.                                     #
#                                                                           #
#   Home: http://enter.appspot.com                                          #
#                                                                           #
#############################################################################
import wsgiref.handlers
import urlparse
import StringIO
import logging
import base64
import zlib 
import gzip 
import re
import traceback
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.api import urlfetch
from google.appengine.api import memcache
from google.appengine.ext.webapp import template
import os 
 

class MainIndex(webapp.RequestHandler):  
    def get(self):    
        path = os.path.join(os.path.dirname(__file__), 'index.html')
        self.response.out.write(template.render(path, {}))
        return

def main():
    application = webapp.WSGIApplication([('.*', MainIndex),    
                                          ], debug=True)
    wsgiref.handlers.CGIHandler().run(application)


if __name__ == '__main__':
    main()
